Integrand size = 29, antiderivative size = 283 \[ \int \frac {\cos ^4(c+d x) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx=-\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {8 \left (32 a^4-57 a^2 b^2+21 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{315 b^5 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {8 a \left (32 a^4-65 a^2 b^2+33 b^4\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{315 b^5 d \sqrt {a+b \sin (c+d x)}}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d} \]
[Out]
Time = 0.32 (sec) , antiderivative size = 283, normalized size of antiderivative = 1.00, number of steps used = 7, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.207, Rules used = {2944, 2831, 2742, 2740, 2734, 2732} \[ \int \frac {\cos ^4(c+d x) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx=\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}-\frac {8 a \left (32 a^4-65 a^2 b^2+33 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}} \operatorname {EllipticF}\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right ),\frac {2 b}{a+b}\right )}{315 b^5 d \sqrt {a+b \sin (c+d x)}}+\frac {8 \left (32 a^4-57 a^2 b^2+21 b^4\right ) \sqrt {a+b \sin (c+d x)} E\left (\frac {1}{2} \left (c+d x-\frac {\pi }{2}\right )|\frac {2 b}{a+b}\right )}{315 b^5 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d} \]
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2831
Rule 2944
Rubi steps \begin{align*} \text {integral}& = -\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {4 \int \frac {\cos ^2(c+d x) \left (-\frac {a b}{2}-\frac {1}{2} \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{\sqrt {a+b \sin (c+d x)}} \, dx}{21 b^2} \\ & = -\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}+\frac {16 \int \frac {a b \left (2 a^2-3 b^2\right )+\frac {1}{4} \left (32 a^4-57 a^2 b^2+21 b^4\right ) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx}{315 b^4} \\ & = -\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}+\frac {\left (4 \left (32 a^4-57 a^2 b^2+21 b^4\right )\right ) \int \sqrt {a+b \sin (c+d x)} \, dx}{315 b^5}-\frac {\left (4 a \left (32 a^4-65 a^2 b^2+33 b^4\right )\right ) \int \frac {1}{\sqrt {a+b \sin (c+d x)}} \, dx}{315 b^5} \\ & = -\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d}+\frac {\left (4 \left (32 a^4-57 a^2 b^2+21 b^4\right ) \sqrt {a+b \sin (c+d x)}\right ) \int \sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}} \, dx}{315 b^5 \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {\left (4 a \left (32 a^4-65 a^2 b^2+33 b^4\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}\right ) \int \frac {1}{\sqrt {\frac {a}{a+b}+\frac {b \sin (c+d x)}{a+b}}} \, dx}{315 b^5 \sqrt {a+b \sin (c+d x)}} \\ & = -\frac {2 \cos ^3(c+d x) (8 a-7 b \sin (c+d x)) \sqrt {a+b \sin (c+d x)}}{63 b^2 d}+\frac {8 \left (32 a^4-57 a^2 b^2+21 b^4\right ) E\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right )|\frac {2 b}{a+b}\right ) \sqrt {a+b \sin (c+d x)}}{315 b^5 d \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}-\frac {8 a \left (32 a^4-65 a^2 b^2+33 b^4\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (c-\frac {\pi }{2}+d x\right ),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}}{315 b^5 d \sqrt {a+b \sin (c+d x)}}+\frac {4 \cos (c+d x) \sqrt {a+b \sin (c+d x)} \left (a \left (32 a^2-33 b^2\right )-3 b \left (8 a^2-7 b^2\right ) \sin (c+d x)\right )}{315 b^4 d} \\ \end{align*}
Time = 2.13 (sec) , antiderivative size = 275, normalized size of antiderivative = 0.97 \[ \int \frac {\cos ^4(c+d x) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx=\frac {-32 \left (32 a^5+32 a^4 b-57 a^3 b^2-57 a^2 b^3+21 a b^4+21 b^5\right ) E\left (\frac {1}{4} (-2 c+\pi -2 d x)|\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}+32 a \left (32 a^4-65 a^2 b^2+33 b^4\right ) \operatorname {EllipticF}\left (\frac {1}{4} (-2 c+\pi -2 d x),\frac {2 b}{a+b}\right ) \sqrt {\frac {a+b \sin (c+d x)}{a+b}}-b \cos (c+d x) \left (-512 a^4+880 a^2 b^2-203 b^4-8 \left (4 a^2 b^2-21 b^4\right ) \cos (2 (c+d x))+35 b^4 \cos (4 (c+d x))-128 a^3 b \sin (c+d x)+202 a b^3 \sin (c+d x)+10 a b^3 \sin (3 (c+d x))\right )}{1260 b^5 d \sqrt {a+b \sin (c+d x)}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(1189\) vs. \(2(329)=658\).
Time = 1.22 (sec) , antiderivative size = 1190, normalized size of antiderivative = 4.20
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.15 (sec) , antiderivative size = 537, normalized size of antiderivative = 1.90 \[ \int \frac {\cos ^4(c+d x) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx=-\frac {2 \, {\left (4 \, \sqrt {2} {\left (32 \, a^{5} - 69 \, a^{3} b^{2} + 39 \, a b^{4}\right )} \sqrt {i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right ) + 4 \, \sqrt {2} {\left (32 \, a^{5} - 69 \, a^{3} b^{2} + 39 \, a b^{4}\right )} \sqrt {-i \, b} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right ) + 6 \, \sqrt {2} {\left (32 i \, a^{4} b - 57 i \, a^{2} b^{3} + 21 i \, b^{5}\right )} \sqrt {i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (8 i \, a^{3} - 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) - 3 i \, b \sin \left (d x + c\right ) - 2 i \, a}{3 \, b}\right )\right ) + 6 \, \sqrt {2} {\left (-32 i \, a^{4} b + 57 i \, a^{2} b^{3} - 21 i \, b^{5}\right )} \sqrt {-i \, b} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, a^{2} - 3 \, b^{2}\right )}}{3 \, b^{2}}, -\frac {8 \, {\left (-8 i \, a^{3} + 9 i \, a b^{2}\right )}}{27 \, b^{3}}, \frac {3 \, b \cos \left (d x + c\right ) + 3 i \, b \sin \left (d x + c\right ) + 2 i \, a}{3 \, b}\right )\right ) + 3 \, {\left (40 \, a b^{4} \cos \left (d x + c\right )^{3} - 2 \, {\left (32 \, a^{3} b^{2} - 33 \, a b^{4}\right )} \cos \left (d x + c\right ) - {\left (35 \, b^{5} \cos \left (d x + c\right )^{3} - 6 \, {\left (8 \, a^{2} b^{3} - 7 \, b^{5}\right )} \cos \left (d x + c\right )\right )} \sin \left (d x + c\right )\right )} \sqrt {b \sin \left (d x + c\right ) + a}\right )}}{945 \, b^{6} d} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {\cos ^4(c+d x) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx=\int { \frac {\cos \left (d x + c\right )^{4} \sin \left (d x + c\right )}{\sqrt {b \sin \left (d x + c\right ) + a}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx=\text {Timed out} \]
[In]
[Out]
Timed out. \[ \int \frac {\cos ^4(c+d x) \sin (c+d x)}{\sqrt {a+b \sin (c+d x)}} \, dx=\int \frac {{\cos \left (c+d\,x\right )}^4\,\sin \left (c+d\,x\right )}{\sqrt {a+b\,\sin \left (c+d\,x\right )}} \,d x \]
[In]
[Out]